home *** CD-ROM | disk | FTP | other *** search
/ Haight-Ashbury in the Sixties / Haight-Ashbury in the Sixties (1996)(Rockument)(Disc 1 of 2)[Mac-PC].iso / mac / MAIN / TUNEIN / TUNEIN01.DIR / 00334_Script_334 < prev    next >
Text File  |  1995-06-01  |  2KB  |  53 lines

  1. on mouseDown
  2.   global lastCredits, thisLine, thisTopic, thisTopicItem, thisItemType, thisIndex
  3.   set thisLine = the mouseLine
  4.   if thisLine = -1 then
  5.     exit
  6.   end if
  7.   if line thisLine of field "selected topics list"  = "╫ " then
  8.     beep
  9.     exit
  10.   end if
  11.   if line thisLine of field "selected topics list"  = "" then
  12.     beep
  13.     exit
  14.   else
  15.     hilite line thisLine of field "selected topics list"  
  16.     cursor 4
  17.     set thisIndex = (thisTopic&" index")
  18.     set thisTopicItem = chars(line thisLine of field thisIndex, (the length of word 1 of line thisLine of field thisIndex+2), (the length of line thisLine of field thisIndex))
  19.     set thisItemType = word 1 of line thisLine of field thisIndex
  20.     
  21.     -- handles display of text items
  22.     if thisItemType = "TEXT" then
  23.       set the text of cast "search text" = the text of cast thisTopicItem
  24.       puppetSound "add a movie"
  25.       go to frame "search text"
  26.     end if
  27.     -- handles display of video items    
  28.     if thisItemType = "VIDEO240" then
  29.       global thisVideo
  30.       set thisVideo = word 2 of line thisLine of field thisIndex
  31.       go to frame "search video 240"
  32.     end if
  33.     if thisItemType = "VIDEO320" then
  34.       global thisVideo
  35.       set thisVideo = word 2 of line thisLine of field thisIndex
  36.       go to frame "search video 320"
  37.     end if
  38.     -- handles display of turn on movies items
  39.     if thisItemType = "TURNON" then
  40.       set the cursor of sprite 5 to 0
  41.       set the cursor of sprite 7 to 0
  42.       cursor 4
  43.       updatestage
  44.       go to frame "search show"
  45.     end if
  46.     -- handles display of image items
  47.     if thisItemType = "IMAGE" then
  48.       go to frame (word 2 of line thisLine of field thisIndex) of movie "SARTWORK.DIR"
  49.     end if
  50.   end if
  51. end
  52.  
  53.